<!DOCTYPE html>
<html>
<head>
    <style>
        div
        {
            width: 200px;
            height: 100px;
            border: 5px solid black;
            margin: 15px;
        }
        .fixed
        {
            position: fixed;
            top: 150px;
            left: 150px;
        }
        /* 固定右下角 */
        #myname
        {
            position: fixed;
            right: 0;
            bottom: 0;
        }
    </style>
    <meta charset="UTF-8" />
    <title>固定定位</title>
</head>
<body>
    <!-- fixed:以浏览器窗口为参照物,脱离文档流 -->
    <div class="fixed">div1</div>
    <div>div2</div>
    <div id="myname">div3</div>
    <div>1</div>
    <div>1</div>
    <div>1</div>
    <div>1</div>
    <div>1</div>
    <div>1</div>
    <div>1</div>
</body>
</html>